// 预约相关接口
import http from "../../common/http.js";

export default {
  // 预约配置接口
  getAppointmentConfig: (data) => {
    return http.GET("/plugin/food/book/config", data);
  },
  // 验证码
  getPhoneCode: (data) => {
    return http.POST("/plugin/food/book/send-code", data);
  },
  // 提交预约接口
  submitAppoint: (data) => {
    return http.POST("/plugin/food/book/submit", data);
  },
  // 取消预约
  cancleAppoint: (data) => {
    return http.POST("/plugin/food/book/cancel", data);
  },
};
